import request from '@/router/axios';
import {baseUrl} from "../../config/env";

export const getList = (current, size, params) => {
  return request({
    url: baseUrl + '/api-job/jobgroup/newlist',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url:  baseUrl + '/api-job/jobgroup/detail/'+id,
    method: 'get',
    // params: {
    //   id
    // }
  })
}

export const remove = (ids) => {
  return request({
    url:  baseUrl + '/api-job/jobgroup/newremove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url:  baseUrl + '/api-job/jobgroup/newsave',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url:  baseUrl + '/api-job/jobgroup/newupdate',
    method: 'post',
    data: row
  })
}

